class CreateUserToolSettings < ActiveRecord::Migration
  def self.up
    create_table :user_tool_settings do |t|
      t.integer :user_id,
        :tool_id,
        :column
      t.string :type
      t.integer :position, :default => 0
      t.string :allow_sms, :default => 'yes'
      t.string :allow_email, :default => 'yes'
      t.timestamps
    end
  end

  def self.down
    drop_table :user_tool_settings
  end
end
